<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<f:view contentType="text/html" xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ds="http://deltaspike.apache.org/jsf"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:a="http://richfaces.org/a4j"
  xmlns:rich="http://richfaces.org/rich"
  xmlns:a4j="http://richfaces.org/a4j">
  <!--[if lt IE 7]>      <html class="no-js new-zanata lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
  <!--[if IE 7]>         <html class="no-js new-zanata lt-ie9 lt-ie8"> <![endif]-->
  <!--[if IE 8]>         <html class="no-js new-zanata lt-ie9"> <![endif]-->
  <!--[if gt IE 8]><!-->
  <html class="no-js new-zanata">
  <!--<![endif]-->
  <!-- Provided by Copyright (c) 2015 Silktide Ltd under the MIT license -->
  <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
  <script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
  <script>
    window.addEventListener("load", function(){
    window.cookieconsent.initialise({
      "palette": {
        "popup": {
          "background": "#eaf7f7",
          "text": "#546677"
        },
        "button": {
          "background": "transparent",
          "text": "#03A6D7",
          "border": "#546677"
        }
      },
      "content": {
        "message": "The Zanata web application uses cookies to operate. For more information, please refer to",
        "link": "our privacy policy",
        "href": "http://zanata.org/privacy"
      }
    })});
  </script>
  <h:head>
    <ui:remove>
      <!-- This needs to appear before all other JavaScript, for accurate testing -->
    </ui:remove>
    <h:outputText value="#{javaScriptTestHelper.headScript}" escape="false" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>

    <title>#{msgs['jsf.Zanata']}: <ui:insert name="page_title"/></title>

    <meta name="description" content=""/>
    <meta name="author" content=""/>
    <meta name="viewport" content="width=device-width, minimum-scale=1.0"/>
    <meta http-equiv="cleartype" content="on"/>
    <link type="image/x-icon" rel="shortcut icon"
          href="#{request.contextPath}/resources/assets/img/logo/logo.ico" />

    <!-- Preconnect SourceSansPro (Google Fonts) via FontFace. Async
    Google Fonts are listed in Lines 68-81 of this file
   -->
    <link rel="preconnect" href="https://fonts.gstatic.com/"
          crossorigin="anonymous" />

    <!-- Preloader for zanata (icon) webfont.
    zanata-war/src/main/webapp/resources/assets/css/style.css
    Lines 3339-3342
    -->
    <link rel="preload" as="font" crossorigin="anonymous" type="font/woff"
      href="#{request.contextPath}/resources/assets/fonts/zanata-v6/zanata.woff" />
    <!-- Preloader for fontello (jsf page icon) webfont.
    1.  zanata-war/src/main/webapp/resources/fontello/css/fontello.css
        Lines 3-6
    2.  services/src/test/java/org/zanata/webtrans/public/images/fontello/css
        /fontello.css
        Lines 3-6
    -->
    <link rel="preload" as="font" crossorigin="anonymous" type="font/woff"
      href="#{request.contextPath}/resources/fontello/font/fontello.woff" />

    <!--[if gt IE 8]><!-->
    <link type="text/css" rel="stylesheet" href="#{request.contextPath}/resources/assets/css/style.css"/>
    <!--<![endif]-->

    <!--[if (lt IE 9) & (!IEMobile)]>
      <script src="js/vendor/selectivizr-min.js"></script>
    <![endif]-->

    <link type="text/css" rel="stylesheet"
      href="#{request.contextPath}/resources/fontello/css/fontello.css"/>
    <!-- Async Google Fonts -->
    <script type="text/javascript">
      WebFontConfig = {
        google: { families: [ 'Source+Sans+Pro:300,400,600,700,400italic:latin,latin-ext' ] }
      };
      (function() {
        var wf = document.createElement('script');
        wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
          '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
        wf.type = 'text/javascript';
        wf.async = 'true';
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(wf, s);
      })();
    </script>

    <ui:insert name="head"/>
  </h:head>

  <h:body styleClass="new-zanata">
    <ds:windowId/>
    <main role="main" class="l--pad-bottom-1">
      <div class="l__wrapper">
        <ui:insert name="center_content"/>
      </div>
    </main>
    <footer role="contentinfo" class="l--push--v-2">
      <div class="l__wrapper">
      </div>
    </footer>
    <ui:include src="scripts.xhtml"/>
  </h:body>
  </html>
</f:view>
